home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
015
/
setupoki.arc
/
SETUPOKI.DOC
< prev
Wrap
Text File
|
1987-01-11
|
4KB
|
54 lines
SETUPOKI is an enhanced version of a memory-resident printer setup
utility written by Jeff Prosise and published in PC Magazine (Vol. 5,
No. 12, June 24, 1986). It was originally called SETUP, but has been
renamed SETUPOKI to avoid conflict with other programs which use the
rather generic name SETUP. The program allows you to call up a menu
of printer options at any time and send the corresponding codes to
your printer without having to look them up in the manual. The
original version sent Epson FX/RX control codes, but this one sends
Okidata 92/93 codes. The menu text and the code table can be easily
modified in source or object form for use with a different printer;
however, the published DEBUG offsets are no longer valid. Each code
table entry is exactly 16 bytes long: control bytes first, followed
by a terminator byte of 255 decimal, followed by filler bytes.
Before you can use SETUPOKI, you must load it into memory by typing
its name at the DOS prompt or by including it in an AUTOEXEC batch.
Once loaded, it should NOT be loaded again until the computer is
rebooted. It should work on all PC's and compatibles and on all
video adapters, but only in 80-column text modes. (See article.)
When SETUPOKI is invoked by pressing the Ctrl and Right Shift keys
together, it will display a menu of function keys and resulting
actions. F1 thru F10 and Shifted-F1 thru -F8 are largely self-
explanatory (and are explained in the article). F9 originally
reset top-of-form with a page length of 66 lines; now it uses a
page length of 11 inches. Shifted-F9 is now also accepted to
reset top-of-form with manual page-length entry: After Shifted-
F9, enter Ctrl-A for 1-inch forms or Ctrl-B for 2-inch forms, etc.
Invalid keys will still cause a beep from the computer speaker,
but many more keys are now valid, as exlained below.
The End key in the numeric pad is now used to exit from SETUPOKI
(since ESC can be sent manually). Ctrl-F1 to Ctrl-F4 are accepted
to select printers LPT1 to LPT4 respectively. Alt-F1 to Alt-F4 are
accepted to swap printers LPT1 to LPT4 with printer LPT1, which is
done by swapping the entries in the printer base table in the BIOS
data area. To avoid any confusion which might result from repeated
swaps, the original values are reset before each swap. (LPT4 is not
normally valid, but might be supported by some BIOS implementations,
since there are 4 entries in the table.) Valid ASCII characters
(less than 128 decimal) are accepted and passed to the printer for
forms setup or whatever. Some control keys are very useful; for
example, Ctrl-L (FF) will skip to top-of-form. Return gives a CR
only; use Ctrl-J (or Ctrl-Return) if you want a LineFeed (LF).
It would be nicer if up to four different menus and code tables
could be included, but as the program now stands, only one type of
printer can be fully supported. For example, if LPT2 is different,
the LPT1 control codes may not apply, but LPT2 can still be sent
control codes by entering them manually. This was easy to add to
the original program, and should be better than no support at all.
The port-swapping logic is handy in situations where the program
doing the printing does not provide support for changing printers.